package com.jzo2o.foundations.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.api.foundations.dto.response.RegionSimpleResDTO;
import com.jzo2o.api.foundations.dto.response.ServeAggregationResDTO;
import com.jzo2o.common.model.PageResult;
import com.jzo2o.foundations.model.domain.Serve;
import com.jzo2o.foundations.model.domain.ServeSync;
import com.jzo2o.foundations.model.dto.request.ServePageQueryReqDTO;
import com.jzo2o.foundations.model.dto.request.ServeSyncUpdateReqDTO;
import com.jzo2o.foundations.model.dto.request.ServeUpsertReqDTO;
import com.jzo2o.foundations.model.dto.response.*;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * <p>
 * 服务同步表 服务类
 * </p>
 *
 * @author itcast
 * @since 2023-07-10
 */
public interface IServeService extends IService<Serve> {
    /**
     * 区域服务项分页查询
     * @param servePageQueryReqDTO
     * @return
     */
    PageResult<ServeResDTO> findPage(ServePageQueryReqDTO servePageQueryReqDTO);

    /**
     * 区域服务项新增
     * @param dtoList
     */
    void add(List<ServeUpsertReqDTO> dtoList);

    void deleteById(@NotNull(message = "id不能为空") Long id);

    void OnSate(@NotNull(message = "id不能为空") Long id);

    void offSale(@NotNull(message = "id不能为空") Long id);

    void OnHot(@NotNull(message = "id不能为空") Long id);

    void offHot(@NotNull(message = "id不能为空") Long id);

    List<ServeCategoryResDTO> firstPageServeList(Long regionId);

    List<ServeAggregationSimpleResDTO> hotServeList(Long regionId);

    ServeAggregationSimpleResDTO fingById(Long id);

    List<ServeAggregationTypeSimpleResDTO> serveTypeList(Long regionId);

    List<ServeSimpleResDTO> search(Long cityCode, String keyword, String serveTypeId);

    ServeAggregationResDTO findServeDetailById(Long id);
}
